﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace ApiVersionControlDemo.Controllers.V2
{


    [ApiVersion("2.0")]
    [Route("api/demo")]
    [ApiController]
    public class DemoController : ControllerBase
    {
        // http://localhost:52622/api/demo/index?api-version=2.0

        [HttpGet]
        [Route("index")]
        public string Index()
        {
            return "DemoController V2 File: Index";
        }
    }
}